.wraper {
    box-sizing: border-box;
}

.wraper.mobile {
    box-sizing: border-box;

    .main {
        padding: 20px 0 40px;
    }

    .preview-wrap {
        padding: 0 16px;
    }

    .preview {
        width: 100%;
        height: auto;
        aspect-ratio: 343 / 255;
        border-radius: 4px;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        overflow: hidden;
        position: relative;
        display: none;

        &.preview-active {
            display: block;
        }
    }

    .info {
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
        height: 42px;
        background-color: rgb(0 0 0 / 60%);
        padding: 0 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .title {
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        line-height: 14px;

        @apply truncate;
    }

    .subtitle {
        color: rgb(255 255 255 / 60%);
        font-size: 12px;
        font-weight: 400;
        line-height: 12px;

        @apply truncate;
    }

    .list {
        margin-top: 10px;
        display: flex;
        flex-flow: row nowrap;
        gap: 4px;
        padding-left: 16px;
        overflow: auto;
    }

    .item {
        flex: none;
        width: 60px;
        height: 60px;
        border-radius: 4px;
        overflow: hidden;
        opacity: 0.6;
        cursor: pointer;

        &.item-active {
            opacity: 1;
        }
    }

    .img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.wraper.pc {
    box-sizing: border-box;

    .main {
        padding: 24px 0 80px;
    }

    .content {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .preview-wrap {
        height: 580px;
        width: 780px;
    }

    .preview {
        width: 100%;
        height: 100%;
        border-radius: 4px;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        overflow: hidden;
        position: relative;
        display: none;

        &.preview-active {
            display: block;
        }
    }

    .info {
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
        height: 72px;
        background-color: rgb(0 0 0 / 60%);
        padding: 0 32px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .title {
        color: #fff;
        font-size: 24px;
        font-weight: 700;
        line-height: 32px;

        @apply truncate;
    }

    .subtitle {
        color: rgb(255 255 255 / 60%);
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;

        @apply truncate;
    }

    .list {
        display: flex;
        flex-flow: row wrap;
        align-content: flex-start;
        gap: 10px;
        overflow: auto;
        // plus 8px scrollbar width
        width: 390px;
        height: 580px;
    }

    .item {
        flex: none;
        width: 186px;
        height: 186px;
        border-radius: 4px;
        overflow: hidden;
        opacity: 0.6;
        cursor: pointer;
        position: relative;

        &.item-active {
            opacity: 1;
        }

        &:hover {
            opacity: 1;

            .item-mask {
                display: block;
            }
        }
    }

    .item-mask {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, #0000 0%, #000c 100%);
        display: none;

        .item-mask-desc {
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            line-height: 24px;
            padding: 12px;
            position: absolute;
            left: 0;
            bottom: 0;
            right: 0;
        }
    }

    .img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .btn {
        height: 48px;
        border-radius: 4px;
        border: 1px solid var(--design-theme-color);
        color: var(--design-theme-color);
        font-size: 16px;
        font-weight: 400;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0 58px;
        width: fit-content;
        margin: 60px auto 0;
        transition-duration: .3s;
        transition-property: background-color;
        cursor: pointer;

        &:hover {
            color: #fff;
            background-color: var(--design-theme-color);
        }
    }
}
